﻿using System;
using System.Collections.Generic;

class RemoveRepeatingChars
{
    static void Main()
    {
        //string text = Console.ReadLine();
        string text = "Ala baaala nicaaa ttturrr";

        Console.Write(text[0]);
        for (int i = 1; i < text.Length; i++)
        {
            if (text[i]!=text[i-1])
            {
                Console.Write(text[i]);
            }
        }
        Console.WriteLine();
    }
}